<?php
/* @var $this MailController */
/* @var $model ActSiteMail */
?>

<?php
$this->breadcrumbs=[
	'站内信回复'=>['index'],
	$model->title,
];

$this->menu=[
	['icon' => 'glyphicon glyphicon-home','label'=>'Manage ActSiteMail', 'url'=>['admin']],
	['icon' => 'glyphicon glyphicon-plus-sign','label'=>'Create ActSiteMail', 'url'=>['create']],
	['icon' => 'glyphicon glyphicon-edit','label'=>'Update ActSiteMail', 'url'=>['update', 'id'=>$model->id]],
	['icon' => 'glyphicon glyphicon-minus-sign','label'=>'Delete ActSiteMail', 'url'=>'#', 'linkOptions'=>['submit'=>['delete','id'=>$model->id],'confirm'=>'Are you sure you want to delete this item?']],
];

$this->pageTitle='详情';
$this->pageSubTitle='站内信';


?>

<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-success">
			<div class="panel-heading">
				<h4>详情</h4>
			</div>
			<div class="panel-body">
				<?php $this->widget('zii.widgets.CDetailView',[
				'htmlOptions' => [
				'class' => 'table table-striped table-condensed table-hover',
				],
				'data'=>$model,
				'attributes'=>[
						'id',
		array(
				'name'=>'from_user_id',
				'value'=>CHtml::value($model,"from_user.nickname")."(".CHtml::value($model,"from_user.mobile").")"
			),
		[
			'name'=>'to_user_id',
			'value'=>CHtml::value($model,"to_user.nickname")."(".CHtml::value($model,"to_user.mobile").")"
		],
		array(
			'name'=>'is_read',
			'value'=>$model->is_read==0?"未读":"已读"
        ),
		'create_time',
		'content',
		array(
			'name'=>'type',
			'value'=>$model->type==200?"站内信":"公告"
        ),
		'title',
				],
				]); ?>
			</div> <!-- end panel-body -->
		</div>
	</div>
</div> <!-- end row -->